# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=TAP-Harness-Archive
pkgname=perl-${_realname}
pkgver=0.18
pkgrel=1
pkgdesc="Create an archive of TAP test results"
arch=('any')
url="https://metacpan.org/release/TAP-Harness-Archive"
license=('GPL' 'PerlArtistic')
depends=('perl-YAML-Tiny' 'perl')
options=('!emptydirs')
groups=('perl-modules')
source=(https://www.cpan.org/authors/id/S/SC/SCHWIGON/${_realname}-${pkgver}.tar.gz)
sha256sums=('423ae8fcdddfe7fb44cdd7e2331f4fd35e443543017827e3da3c9f40945c4a64')

build() {
  cd ${_realname}-${pkgver}
  perl Build.PL installdirs=vendor
  ./Build
}

check() {
  cd ${_realname}-${pkgver}
  ./Build test
}

package() {
  cd ${_realname}-${pkgver}
  ./Build install destdir="${pkgdir}"
}
